package com.hst.capacity.domain.model.response.driver;

import com.hst.capacity.domain.model.entity.driver.DriverEntity;
import com.hst.capacity.domain.model.entity.driver.DriverProfileEntity;
import com.hst.capacity.domain.model.entity.vehicle.VehicleEntity;
import lombok.Data;
import org.apache.ibatis.type.Alias;

@Data
@Alias("DriverBandLineVO")
public class DriverBandLineVO {

    private String idDriver;
    private String idFranchisee;
    private String driverMobile;
    private String driverName;

    public DriverBandLineVO(DriverEntity d, DriverProfileEntity dp){
        this.idDriver = d.getIdDriver();
        this.idFranchisee = d.getIdFranchisee();
        this.driverMobile = d.getDriverMobile();
        this.driverName = dp.getRealName();
    }

}
